home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
COMMUNIC
/
1024.ZIP
/
GT.BAT
< prev
next >
Wrap
DOS Batch File
|
1987-10-25
|
2KB
|
51 lines
echo off
goto X_00_X
This batch file is used in conjunction with GT POWER, which normally
restricts the number of times it may be used. By running GT-RENEW,
the counter ( stored within GT.DIR ) is reset. Although GT-RENEW
only has to be run occasionally ( about once per 100 times GT POWER is
run ), it is fast enough ( if you use a speedy hard disk ) to use on a
regular basis. If it too slow on your system, you can speed it up
considerably by replacing this entire file with the next two lines:
GT-RENEW RENEW [ directory_name_here_if_you_don't_want_it_to_be_GT.DIR ]
GT1300
Note: As seen in the previous line, it is assumed that you have not renamed
GT1300.COM to GT.COM or some other name. If you have done so, then this
file should be modified ( just below label X_02_X ). Unless you know
exactly what you are doing, this batch file should not be called GT.BAT if
GT POWER is named GT.COM.
:X_00_X
if exist gt.dir goto X_01_X
if NOT "%1" == "" goto X_01_X
echo
echo #### GT.BAT ERROR: Can't find GT.DIR ####
echo
goto X_99_X
:X_01_X
echo .
if "%1" == "" echo #### attempting to renew GT.DIR ####
if NOT "%1" == "" echo #### attempting to renew %1.dir ####
gt-renew renew %1
if NOT errorlevel 1 goto X_02_X
echo
if "%1" == "" echo #### GT.BAT ERROR: Could not modify GT.DIR ####
if NOT "%1" == "" echo #### GT.BAT ERROR: Could not modify %1.dir ####
echo
goto X_99_X
:X_02_X
if "%1" == "" goto X_03_X
shift
if NOT "%1" == "" goto X_01_X
if exist GT.DIR goto X_01_X
:X_03_X
break off
GT1300
:X_99_X
break on